package com.ecs.client;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.net.Socket;

import com.ecs.message.ECSMessage;

public class SendMessage implements Serializable{
	private Socket s;
	private ECSMessage message;
	/**
	 * 
	 */
	private static final long serialVersionUID = -3410243122541815931L;

	
	public SendMessage(Socket s,ECSMessage message) throws Exception
	{
		this.s = s;
		this.message = message;
		ObjectOutputStream oos = new ObjectOutputStream(s.getOutputStream());
		oos.writeObject(message);
	}
	
}
